home *** CD-ROM | disk | FTP | other *** search
- Path: news.dfw.net!news
- From: k2p@dfw.net (Dave Burkett)
- Newsgroups: comp.lang.c++
- Subject: Visual C++/VB - 32-bit DLLs
- Date: 15 Feb 1996 07:38:00 GMT
- Organization: K2 Programming Corporation
- Message-ID: <4funso$57e@fnord.dfw.net>
- NNTP-Posting-Host: dallas11.dfw.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- I'm trying to get a 32-bit DLL (created with Visual C++ 4.0) to hook up with
- Visual Basic 4.0 (32-bit version). No problems with the VB 3.0 & Visual C++ 1.5
- versions. Here is the DLL (my best guess).
-
- #include <stdio.h>
- #include <windows.h>
-
- extern "C" __declspec(dllexport) int __stdcall Foo ( int iNumber );
-
- int APIENTRY DllMain( HANDLE hModule, DWORD ul_reason, LPVOID lpReserved )
- {
- return TRUE;
- }
-
- extern "C" __declspec(dllexport) int __stdcall Foo ( int iNumber )
- {
- return ( iNumber + 10 );
- }
-
- The trouble is, though the VB 4.0 app sees the DLL, I get a 'DLL function not
- found' error. Any ideas about what might be going wrong here?
- Thanks for any assistance...
-
-